package main

import (
        "fmt"
        "os"
        "bufio"
        "strings"
)

func main() {
        file, err := os.Open("wc.go")
        if err != nil {
                panic(err)
        }
        
        var (
                l uint64
                w uint64
                c uint64
        )

        scanner := bufio.NewScanner(file)
        for scanner.Scan() {
                
                line := scanner.Text()
                c += uint64(len(line))
                splitlines := strings.Split(line, " ")
                w += uint64(len(splitlines))
                l++
        }

                fmt.Printf("%v %v %v\n", l,w,c)
}
